package InputPkg;

import java.io.DataInputStream;
import java.util.ArrayList;
import java.util.Scanner;

public abstract class DataInput implements Runnable {
	
	
	protected ArrayList<DataType> buffer;
	protected int type;
	protected DataInputStream in;
	protected Scanner scan;
	
	
	
	public abstract void getInput();
	//public abstract void getInput(DataInputStream input);
	public DataType getSingleData(){
		while(buffer.size()<=0){
		}
		DataType t = buffer.get(0);
		buffer.remove(0);
		return t;
	}
	
}
